package edu.sctu.practice.class01.nieyu.assign03.assign03_1_graph;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Circle extends GeometricObject {

    private int redious;

    public Circle(int redious) {

        super("white");
        this.redious = redious;

    }

    @Override
    public double findArea() {

        double area;
        area = Math.PI * redious * redious;

        return area;

    }

    @Override
    public double findPerimeter() {

        double perimeter;
        perimeter = 2 * Math.PI * redious;

        return perimeter;

    }
    public String toString(){

        return " 半径为： " + redious ;
    }

}
